﻿@page "/"
@using Volo.Abp.MultiTenancy
@inherits DemoAppComponentBase
@inject AuthenticationStateProvider AuthenticationStateProvider

<div class="container">
    <div class="p-5 text-center">

        <h1>Welcome to the Application</h1>

        <p class="lead px-lg-5 mx-lg-5">@L["LongWelcomeMessage"]</p>

        @if (!CurrentUser.IsAuthenticated)
        {
            <a class="btn btn-primary" href="Account/Login"><i class="fa fa-sign-in"></i> @L["Login"]</a>
            <Button Type="primary">Primary</Button>
        }

        <Button Type="primary" OnClick="@SendAlert">发送Alert</Button>
        <Button Type="primary" OnClick="@(async ()=> { await SendMessage(); })">发送Message</Button>
        <Button Type="primary" OnClick="@SendProgress">进度条</Button>
        <Button Type="primary" OnClick="@SendHideProgress">隐藏进度条</Button>
    </div>
</div>
